﻿@model NigiriClub.WebUI.Models.News

<div class="input-group">
    <span class="input-group-addon">Заголовок</span>
    @Html.TextBoxFor(m => m.Title, new { @class = "form-control", @required = "true" })
</div>
<div>@Html.TextAreaFor(m => m.Body, new { @id = "summernote" })</div>

<div class="form-group">
    <label for="select" class="col-lg-2 control-label">Категория:</label>
    <div class="col-lg-10">
        @Html.DropDownListFor(m => m.CategoryId, new SelectList(Model.CategoryList, "Id", "Name", null), "Выберите категорию...", new { @id = "select", @class = "form-control", @required = "true" })
    </div>
</div>
<div class="form-group">
    <label for="tags" class="col-lg-2 control-label">Тэги:</label>
    <div class="col-lg-10">
        @Html.TextBoxFor(m => m.Tags, new
   {
       @class = "form-control",
       @type = "text",
       @id = "tags",
       @placeholder = "Тэги разделям пробелом, в начале ставим решетку"
   })
    </div>
</div>
<div class="form-group">
    <div class="col-lg-10 col-lg-offset-2">
        <button type="submit" class="btn btn-primary">Опубликовать</button>
    </div>
</div>
